package com.async.designpatterns.structure.decorator;

/**
 * 待装饰类实现
 */
public class ConcreteComponent implements Component {

    private String headerImg;
    @Override
    public void display() {
        System.out.printf("the header img is :"+headerImg);
    }

    @Override
    public void setImage(String img) {
        this.headerImg = img;
    }

    @Override
    public void action(String action) {
        System.out.println("执行操作 :"+action);
    }
}
